package com.ds.components.builders;

import com.ds.components.bars.StraightBar;

import java.awt.*;

public class StraightBarBuilder extends ComponentBuilder<StraightBar> 
{
	private int borderSize = 5;
	private int connectorSize = 10;
	
	@Override
	public StraightBar build() 
	{
		StraightBar bar = new StraightBar();
		
		bar.setBorderSize( this.borderSize );
		bar.setConnectorSize( this.connectorSize );
//			todo		bar.setBackgroundRenderer( this.backgroundRenderer );
		bar.setBackground( Color.black );
		bar.setOpaque( true );

		return bar;
	}

	/**
	 * @return the borderSize
	 */
	public int getBorderSize() {
		return borderSize;
	}

	/**
	 * @param borderSize the borderSize to set
	 */
	public void setBorderSize(int borderSize) {
		this.borderSize = borderSize;
	}

	/**
	 * @return the connectorSize
	 */
	public int getConnectorSize() {
		return connectorSize;
	}

	/**
	 * @param connectorSize the connectorSize to set
	 */
	public void setConnectorSize(int connectorSize) {
		this.connectorSize = connectorSize;
	}
}
